package fanxing;

public class Person2<T>{
    private T x;
    private T y;
    private T Z;

    public Person2() {
    }

    public Person2(T x, T y, T Z) {
        this.x = x;
        this.y = y;
        this.Z = Z;
    }

    /**
     * 获取
     * @return x
     */
    public T getX() {
        return x;
    }

    /**
     * 设置
     * @param x
     */
    public void setX(T x) {
        this.x = x;
    }

    /**
     * 获取
     * @return y
     */
    public T getY() {
        return y;
    }

    /**
     * 设置
     * @param y
     */
    public void setY(T y) {
        this.y = y;
    }

    /**
     * 获取
     * @return Z
     */
    public T getZ() {
        return Z;
    }

    /**
     * 设置
     * @param Z
     */
    public void setZ(T Z) {
        this.Z = Z;
    }

    public String toString() {
        return "Person2{x = " + x + ", y = " + y + ", Z = " + Z + "}";
    }
}
